//
//  ShareListCell.h
//  phmall
//
//  Created by admin on 2017/11/16.
//  Copyright © 2017年 admin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShareModel.h"


@protocol ShareListCellDelegate <NSObject>
-(void)addFriends:(UITableViewCell *)cell;
-(void)purchase:(UITableViewCell *)cell;
-(void)likeAction:(UITableViewCell *)cell;
@end




@interface ShareListCell : UITableViewCell
@property(nonatomic,weak)id<ShareListCellDelegate> delegate;
@property(nonatomic,strong)UIImageView *head;
@property(nonatomic,strong)UILabel *name;
@property(nonatomic,strong)UILabel *time;
@property(nonatomic,strong)UILabel *text;
@property(nonatomic,strong)UILabel *title;
@property(nonatomic,strong)UIView  *imgView;
@property(nonatomic,strong)UIView  *line;
@property(nonatomic,strong)UIButton *like;
@property(nonatomic,strong)UIButton *purchase;
@property(nonatomic,strong)ShareModel *model;
@property(nonatomic,strong)NSMutableArray *imageArray;
@property(nonatomic,strong)UIButton *addFriends;
+ (CGFloat)calculateHeight:(ShareModel*)model;
+ (instancetype)theShareCellWithTableView:(UITableView *)tableView;
@end
